package com.flow.engine.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.flow.engine.entity.FlowAuditUser;
import com.flow.engine.entity.User;
import com.flow.engine.enums.standard.ApprovalState;

import java.util.List;

/**
 * @author ly163
 */
public interface FlowAuditUserService extends IService<FlowAuditUser> {
    List<FlowAuditUser> queryByFlowNodeId(Long currentNodeId);

    Boolean updateByFlowNodeId(Long currentNodeId, User user, String auditRemark, ApprovalState approvalState, ApprovalState otherApprovalState);

    Boolean updateByFlowNodeIdAndAuditUserId(Long currentNodeId, String id, ApprovalState nodeApprovalState, String auditRemark);

    List<FlowAuditUser> queryByFlowNodeIds(List<Long> nextNodes);
}
